package com.atguigu.springboot.service;

import com.atguigu.springboot.bean.Employee;
import com.atguigu.springboot.bean.Region;

import java.util.List;

/**
 * Created by Smexy on 2022/10/11
 */
public interface EmployeeService
{

    //对员工的CRUD
    Employee getEmployeeById(Integer id);

    //写操作无需返回值
    void insertEmployee(Employee employee);

    void updateEmployee(Employee employee);

    void deleteEmployeeById(Integer id);

    //查询所有员工
    List<Employee> getAll();

    //查询所有的region
    List<Region> getAllRegions();
}
